package DataBaseQuery;

import DataType.MyDataType;

public class MyConstant extends MyExpression {
	public MyConstant(MyDataType value,String name)
	{
		this.name = name;
		this.value = value;
		type = ExpressionType.CONST;
	}
	public MyConstant(MyDataType value)
	{
		this.name = "";
		this.value = value;
		type = ExpressionType.CONST;
	}
	@Override
	public MyDataType getValue()
	{
		return value;
	}
	@Override
	public MyDataType getValue(RegularView view)
	{
		return value;
	}
}
